package pack_4_14_2;

import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationListener;

public class MyNotifier implements ApplicationListener {
    public MyNotifier() {
        System.out.println("MyNotifier create..");
    }
    @Override
    public void onApplicationEvent(ApplicationEvent event) {
        if (event instanceof MyEvent) 
            System.out.println(event);
    }
}
